![]() |
KCSetAttribute |
||||
Header: | Keychain.h | Carbon status: | Under Evaluation | |
Sets or modifies attribute data for a keychain item.
OSStatus KCSetAttribute ( KCItemRef item, KCAttribute *attr );
A reference to the keychain item whose attribute data you wish to modify.
A pointer to a structure containing the keychain item attribute data you wish to modify. The structure should contain a tag identifying the attribute you wish to modify, the length of the attribute data you wish to add, and a pointer to that data.
A result code. The result code errKCInvalidItemRef indicates that the specified keychain item reference was invalid. The result code errKCNoSuchAttr indicates that you tried to set an attribute which is undefined for this item class. The result code errKCDataTooLarge indicates that more data was supplied than is allowed for this attribute type.
You can call the KCSetAttribute function to set or modify attribute data for a keychain item. Standard item attributes which can be modified include attributes defined by the constants kDescriptionKCItemAttr, kCommentKCItemAttr, kLabelKCItemAttr, kCreatorKCItemAttr, kTypeKCItemAttr, and kCustomIconKCItemAttr. See
Available beginning with Keychain Manager 1.0.
Under evaluation for Carbon. Available in CarbonLib 1.0 and later when KeychainLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by KeychainLib 1.0 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)